<template>
  <div class="mall-banner">
    <div v-for="banner in banners" :key="banner.img" class="mall-banner__slide">
      <img :src="banner.img" class="mall-banner__img" alt="banner" />
    </div>
  </div>
</template>

<script setup lang="ts">
const props = defineProps<{ banners: Array<{ img: string, link?: string }> }>()
</script>

<style scoped>
.mall-banner {
  display: flex;
  gap: 16px;
  margin-bottom: 24px;
  padding: 0;
}
.mall-banner__slide {
  flex: 1;
  height: 200px;
  background: #f5f5f5;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 28px;
  color: #aaa;
  box-shadow: 0 4px 12px rgba(0,0,0,0.08);
  overflow: hidden;
  transition: all 0.3s ease;
  border: 1px solid #f0f0f0;
}
.mall-banner__slide:hover {
  box-shadow: 0 8px 24px rgba(0,0,0,0.15);
  transform: translateY(-2px);
}
.mall-banner__img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
</style> 